 package org.gov.vis.data.gui;

import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import org.gov.vis.components.VISTextField;
import org.gov.vis.data.dto.FollowUpDetailsDto;
import org.gov.vis.data.gui.listener.AddInsertFollowUpDetailsListener;
import org.gov.vis.gui.VisBaseDialog;
import org.gov.vis.gui.util.GuiUtil;
import org.gov.vis.util.DBConstants;

import com.toedter.calendar.JDateChooser;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class AddInsertFollowUpDetailsDialog extends VisBaseDialog{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6604284116790434008L;
	private JPanel pnlFollowUpDetails;
	private JPanel pnlMessages;
	private VISTextField txtBxBirthWeight;
	private JButton btnReset;
	private JButton btnSave;
	private JPanel pnlBtns;
	private VISTextField txtBxMonthlyWt;
	private JLabel lblDeticking;
	private JLabel lblMonthlyWt;
	private JLabel lblBirthWt;
	private VISTextField txtBxNutrition;
	private VISTextField txtBxOthers;
	private VISTextField txtBxDeticking;
	private VISTextField txtBxVaccinations;
	private VISTextField txtBxDeworming;
	private JLabel lblNutrition;
	private JLabel lblOthers;
	private JLabel lblVaccinations;
	private JLabel lblDeworing;
	private Object progencyObject;
	private Object followUpDetailsObject;
	private JDateChooser dtChoDateOfDeworming;
	private JDateChooser dtChoDateOfVaccination;
	private JDateChooser dtChoDateOfDeticking;

	public AddInsertFollowUpDetailsDialog()
	{
		
	}
	public AddInsertFollowUpDetailsDialog(Frame owner, String title, boolean modal) {
		super(owner, title, modal);
		// TODO Auto-generated constructor stub
		initGUI();
		GuiUtil.CompCenterCords cords=GuiUtil.getCompCenterCords(500, 400);
		setBounds(cords.getX(), cords.getY(), 500, 400);		
	}

	private void initGUI() {
		// TODO Auto-generated method stub
		GridBagLayout thisLayout = new GridBagLayout();
		thisLayout.rowWeights = new double[] {0.1};
		thisLayout.rowHeights = new int[] {7};
		thisLayout.columnWeights = new double[] {0.1};
		thisLayout.columnWidths = new int[] {7};
		getContentPane().setLayout(thisLayout);
		{
			pnlFollowUpDetails = new JPanel();
			GridBagLayout pnlFollowUPDetLayout = new GridBagLayout();
			pnlFollowUPDetLayout.columnWidths = new int[] {7, 7, 7, 7, 7};
			pnlFollowUPDetLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7};
			pnlFollowUPDetLayout.columnWeights = new double[] {0.0, 0.0, 0.0, 0.1, 0.0};
			pnlFollowUPDetLayout.rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
			getContentPane().add(pnlFollowUpDetails, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
			pnlFollowUpDetails.setLayout(pnlFollowUPDetLayout);
			{
				lblDeworing = new JLabel();
				pnlFollowUpDetails.add(lblDeworing, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblDeworing.setText(setFieldLabel(getResources().getString("dialog_label_prgy_dworing"), true));
			}
			{
				lblVaccinations = new JLabel();
				pnlFollowUpDetails.add(lblVaccinations, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblVaccinations.setText(setFieldLabel(getResources().getString("dialog_label_prgy_vaccintion"), true));
			}
			{
				lblDeticking = new JLabel();
				pnlFollowUpDetails.add(lblDeticking, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblDeticking.setText(setFieldLabel(getResources().getString("dialog_label_prgy_deticking"), true));
			}
			{
				lblOthers = new JLabel();
				pnlFollowUpDetails.add(lblOthers, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblOthers.setText(setFieldLabel(getResources().getString("dialog_label_prgy_othrs"), false));
			}
			{
				lblNutrition = new JLabel();
				pnlFollowUpDetails.add(lblNutrition, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblNutrition.setText(setFieldLabel(getResources().getString("dialog_label_prgy_nutriton"), false));
			}
			{
				txtBxNutrition = new VISTextField();
				pnlFollowUpDetails.add(txtBxNutrition, new GridBagConstraints(3, 10, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				//txtBxDeworming = new VISTextField();
				//pnlFollowUpDetails.add(txtBxDeworming, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				dtChoDateOfDeworming = new JDateChooser(null,DBConstants.DISPLAY_DATE_FORMAT);
				dtChoDateOfDeworming.setPreferredSize(txtBxNutrition.getPreferredSize());
				pnlFollowUpDetails.add(dtChoDateOfDeworming, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

			}
			{
				//txtBxVaccinations = new VISTextField();
				//pnlFollowUpDetails.add(txtBxVaccinations, new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			
				dtChoDateOfVaccination = new JDateChooser(null,DBConstants.DISPLAY_DATE_FORMAT);
				dtChoDateOfVaccination.setPreferredSize(txtBxNutrition.getPreferredSize());
				pnlFollowUpDetails.add(dtChoDateOfVaccination,  new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

			}
			{
				//txtBxDeticking = new VISTextField();
				//pnlFollowUpDetails.add(txtBxDeticking, new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				dtChoDateOfDeticking = new JDateChooser(null,DBConstants.DISPLAY_DATE_FORMAT);
				dtChoDateOfDeticking.setPreferredSize(txtBxNutrition.getPreferredSize());
				pnlFollowUpDetails.add(dtChoDateOfDeticking,   new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

			}
			{
				txtBxOthers = new VISTextField();
				pnlFollowUpDetails.add(txtBxOthers, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			
			{
				lblBirthWt = new JLabel();
				pnlFollowUpDetails.add(lblBirthWt, new GridBagConstraints(1, 12, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblBirthWt.setText(setFieldLabel(getResources().getString("dialog_label_prgy_grwbrthwgt"), false));
			}
			{
				lblMonthlyWt = new JLabel();
				pnlFollowUpDetails.add(lblMonthlyWt, new GridBagConstraints(1, 14, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 20, 0, 0), 0, 0));
				lblMonthlyWt.setText(setFieldLabel(getResources().getString("dialog_label_prgy_grwmnthwgt"), false));
			}
			{
				txtBxBirthWeight = new VISTextField();
				pnlFollowUpDetails.add(txtBxBirthWeight, new GridBagConstraints(3, 12, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				txtBxMonthlyWt = new VISTextField();
				pnlFollowUpDetails.add(txtBxMonthlyWt, new GridBagConstraints(3, 14, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				pnlBtns = new JPanel();
				pnlFollowUpDetails.add(pnlBtns, new GridBagConstraints(3, 16, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				{
					btnSave = new JButton();
					pnlBtns.add(btnSave);
					btnSave.setText("Save");
					btnSave.addActionListener(new AddInsertFollowUpDetailsListener(this));
				}
				{
					btnReset = new JButton();
					pnlBtns.add(btnReset);
					btnReset.setText("Reset");
					btnReset.addActionListener(new AddInsertFollowUpDetailsListener(this));
				}
			}
			{
				pnlMessages = new JPanel();
				pnlFollowUpDetails.add(pnlMessages, new GridBagConstraints(1, 0, 3, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
			}
		}
		
	}

	/**
	 * @return the txtBxBirthWeight
	 */
	public VISTextField getTxtBxBirthWeight() {
		return txtBxBirthWeight;
	}

	/**
	 * @param txtBxBirthWeight the txtBxBirthWeight to set
	 */
	public void setTxtBxBirthWeight(VISTextField txtBxBirthWeight) {
		this.txtBxBirthWeight = txtBxBirthWeight;
	}

	/**
	 * @return the txtBxMonthlyWt
	 */
	public VISTextField getTxtBxMonthlyWt() {
		return txtBxMonthlyWt;
	}

	/**
	 * @param txtBxMonthlyWt the txtBxMonthlyWt to set
	 */
	public void setTxtBxMonthlyWt(VISTextField txtBxMonthlyWt) {
		this.txtBxMonthlyWt = txtBxMonthlyWt;
	}

	/**
	 * @return the txtBxNutrition
	 */
	public VISTextField getTxtBxNutrition() {
		return txtBxNutrition;
	}

	/**
	 * @param txtBxNutrition the txtBxNutrition to set
	 */
	public void setTxtBxNutrition(VISTextField txtBxNutrition) {
		this.txtBxNutrition = txtBxNutrition;
	}

	/**
	 * @return the txtBxOthers
	 */
	public VISTextField getTxtBxOthers() {
		return txtBxOthers;
	}

	/**
	 * @param txtBxOthers the txtBxOthers to set
	 */
	public void setTxtBxOthers(VISTextField txtBxOthers) {
		this.txtBxOthers = txtBxOthers;
	}

	/**
	 * @return the txtBxDeticking
	 */
	public VISTextField getTxtBxDeticking() {
		return txtBxDeticking;
	}

	/**
	 * @param txtBxDeticking the txtBxDeticking to set
	 */
	public void setTxtBxDeticking(VISTextField txtBxDeticking) {
		this.txtBxDeticking = txtBxDeticking;
	}

	/**
	 * @return the txtBxVaccinations
	 */
	public VISTextField getTxtBxVaccinations() {
		return txtBxVaccinations;
	}

	/**
	 * @param txtBxVaccinations the txtBxVaccinations to set
	 */
	public void setTxtBxVaccinations(VISTextField txtBxVaccinations) {
		this.txtBxVaccinations = txtBxVaccinations;
	}

	/**
	 * @return the txtBxDeworming
	 */
	public VISTextField getTxtBxDeworming() {
		return txtBxDeworming;
	}

	/**
	 * @param txtBxDeworming the txtBxDeworming to set
	 */
	public void setTxtBxDeworming(VISTextField txtBxDeworming) {
		this.txtBxDeworming = txtBxDeworming;
	}

	/**
	 * @return the progencyObject
	 */
	public Object getProgencyObject() {
		return progencyObject;
	}

	/**
	 * @param progencyObject the progencyObject to set
	 */
	public void setProgencyObject(Object progencyObject) {
		this.progencyObject = progencyObject;
	}

	/**
	 * @return the pnlFollowUpDetails
	 */
	public JPanel getPnlFollowUpDetails() {
		return pnlFollowUpDetails;
	}

	/**
	 * @param pnlFollowUpDetails the pnlFollowUpDetails to set
	 */
	public void setPnlFollowUpDetails(JPanel pnlFollowUpDetails) {
		this.pnlFollowUpDetails = pnlFollowUpDetails;
	}

	/**
	 * @return the pnlMessages
	 */
	public JPanel getPnlMessages() {
		return pnlMessages;
	}

	/**
	 * @param pnlMessages the pnlMessages to set
	 */
	public void setPnlMessages(JPanel pnlMessages) {
		this.pnlMessages = pnlMessages;
	}

	/**
	 * @return the btnReset
	 */
	public JButton getBtnReset() {
		return btnReset;
	}

	/**
	 * @param btnReset the btnReset to set
	 */
	public void setBtnReset(JButton btnReset) {
		this.btnReset = btnReset;
	}

	/**
	 * @return the btnSave
	 */
	public JButton getBtnSave() {
		return btnSave;
	}

	/**
	 * @param btnSave the btnSave to set
	 */
	public void setBtnSave(JButton btnSave) {
		this.btnSave = btnSave;
	}

	/**
	 * @return the pnlBtns
	 */
	public JPanel getPnlBtns() {
		return pnlBtns;
	}

	/**
	 * @param pnlBtns the pnlBtns to set
	 */
	public void setPnlBtns(JPanel pnlBtns) {
		this.pnlBtns = pnlBtns;
	}

	/**
	 * @return the lblDeticking
	 */
	public JLabel getLblDeticking() {
		return lblDeticking;
	}

	/**
	 * @param lblDeticking the lblDeticking to set
	 */
	public void setLblDeticking(JLabel lblDeticking) {
		this.lblDeticking = lblDeticking;
	}

	/**
	 * @return the lblMonthlyWt
	 */
	public JLabel getLblMonthlyWt() {
		return lblMonthlyWt;
	}

	/**
	 * @param lblMonthlyWt the lblMonthlyWt to set
	 */
	public void setLblMonthlyWt(JLabel lblMonthlyWt) {
		this.lblMonthlyWt = lblMonthlyWt;
	}

	/**
	 * @return the lblBirthWt
	 */
	public JLabel getLblBirthWt() {
		return lblBirthWt;
	}

	/**
	 * @param lblBirthWt the lblBirthWt to set
	 */
	public void setLblBirthWt(JLabel lblBirthWt) {
		this.lblBirthWt = lblBirthWt;
	}

	/**
	 * @return the lblNutrition
	 */
	public JLabel getLblNutrition() {
		return lblNutrition;
	}

	/**
	 * @param lblNutrition the lblNutrition to set
	 */
	public void setLblNutrition(JLabel lblNutrition) {
		this.lblNutrition = lblNutrition;
	}

	/**
	 * @return the lblOthers
	 */
	public JLabel getLblOthers() {
		return lblOthers;
	}

	/**
	 * @param lblOthers the lblOthers to set
	 */
	public void setLblOthers(JLabel lblOthers) {
		this.lblOthers = lblOthers;
	}

	/**
	 * @return the lblVaccinations
	 */
	public JLabel getLblVaccinations() {
		return lblVaccinations;
	}

	/**
	 * @param lblVaccinations the lblVaccinations to set
	 */
	public void setLblVaccinations(JLabel lblVaccinations) {
		this.lblVaccinations = lblVaccinations;
	}

	/**
	 * @return the lblDeworing
	 */
	public JLabel getLblDeworing() {
		return lblDeworing;
	}

	/**
	 * @param lblDeworing the lblDeworing to set
	 */
	public void setLblDeworing(JLabel lblDeworing) {
		this.lblDeworing = lblDeworing;
	}

	/**
	 * @return the dtChoDateOfDeworming
	 */
	public JDateChooser getDtChoDateOfDeworming() {
		return dtChoDateOfDeworming;
	}

	/**
	 * @param dtChoDateOfDeworming the dtChoDateOfDeworming to set
	 */
	public void setDtChoDateOfDeworming(JDateChooser dtChoDateOfDeworming) {
		this.dtChoDateOfDeworming = dtChoDateOfDeworming;
	}

	/**
	 * @return the dtChoDateOfVaccination
	 */
	public JDateChooser getDtChoDateOfVaccination() {
		return dtChoDateOfVaccination;
	}

	/**
	 * @param dtChoDateOfVaccination the dtChoDateOfVaccination to set
	 */
	public void setDtChoDateOfVaccination(JDateChooser dtChoDateOfVaccination) {
		this.dtChoDateOfVaccination = dtChoDateOfVaccination;
	}

	/**
	 * @return the dtChoDateOfDeticking
	 */
	public JDateChooser getDtChoDateOfDeticking() {
		return dtChoDateOfDeticking;
	}

	/**
	 * @param dtChoDateOfDeticking the dtChoDateOfDeticking to set
	 */
	public void setDtChoDateOfDeticking(JDateChooser dtChoDateOfDeticking) {
		this.dtChoDateOfDeticking = dtChoDateOfDeticking;
	}

	/**
	 * @return the followUpDetailsObject
	 */
	public Object getFollowUpDetailsObject() {
		return followUpDetailsObject;
	}

	/**
	 * @param followUpDetailsObject the followUpDetailsObject to set
	 */
	

	public void setFollowUpDetailsObject(FollowUpDetailsDto followUpDetailsDto) {
		// TODO Auto-generated method stub
		
	}
	
}
